home *** CD-ROM | disk | FTP | other *** search
- WHICH
-
- Searches the command path for a particular item.
-
- Format
-
- WHICH <command> [NORES] [RES] [ALL]
-
- Template
-
- FILE/A,NORES/S,RES/S,ALL/S
-
- Location
-
- C:
-
- WHICH lets you find a specific command, program, or directory by entering its
- name. If the named item is in the search path, WHICH displays the complete
- path to that item. WHICH lists resident commands as RESIDENT and internal
- commands as INTERNAL.
-
- Normally, WHICH searches the resident list, the current directory, the
- command paths, and the C: directory. If the item is not found, WHICH sets the
- condition flag to 5 (WARN), but does not print any error message.
-
- If the NORES option is specified, the resident list is not searched. If the
- RES option is specified, only the resident list is searched.
-
- The ALL switch continues the search through the full search path, finding and
- listing all locations of a command or program. It can, however, lead to
- multiple listings of the same command if that command is reached by more than
- one route (such as C: and the current directory).
-
- Examples:
-
- 1> WHICH avail
- C:Avail
-
- 1> WHICH C:
- Workbench:C
-
- 1> WHICH alias
- INTERNAL alias
-